const mongoose = require('mongoose')
const Schema = mongoose.Schema
mongoose.connect('mongodb://localhost/blog')

const musicSchema = new Schema({
    song: {
        type: String,
    },
    singer: {
        type: String,
    },
    album: {
        type: String,
    },
    like: {
        type: Boolean,
        default: true
    },
    photo: {
        type: String,
    },
    music: {
        type: String,
    },
})

const Music = mongoose.model('music', musicSchema)
module.exports = Music